import { Layout } from '@fl/utils/routerHelper'

const adminRoute = {
    children: [
        // #region 合同模板
        {
            component: () => import('@fl/pages/contract-management/list.vue'),
            meta: {
                // breadcrumb: false,
                icon: 'i-icon-park-outline:agreement',
                title: '合同模板',
            },
            name: 'admin-contract-management-list',
            path: 'contract-management',
        },
        {
            component: () => import('@fl/pages/contract-management/add.vue'),
            meta: {
                activeMenu: '/admin/contract-management',
                // breadcrumb: false,
                hidden: true,
                noTagsView: true,
                title: '合同模板表单-新增',
            },
            name: 'admin-contract-management-add',
            path: 'contract-management-add',
        },
        // #endregion 套餐设置
        // #region 印章管理
        {
            component: () => import('@fl/pages/e-seal/list.vue'),
            meta: {
                // breadcrumb: false,
                icon: 'i-icon-park-outline:agreement',
                title: '印章管理',
            },
            name: 'admin-e-seal-list',
            path: 'e-seal',
        },
        {
            component: () => import('@fl/pages/e-seal/add.vue'),
            meta: {
                activeMenu: '/admin/e-seal',
                // breadcrumb: false,
                hidden: true,
                noTagsView: true,
                title: '印章管理-新增',
            },
            name: 'admin-e-seal-add',
            path: 'e-seal-add',
        },
        // #endregion
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        icon: 'i-gg:data',
        title: '系统设置',
    },
    name: 'admin',
    path: '/admin',
    redirect: '/admin/contract-management',
}

export default adminRoute
